export const PAGE_CODE = 'dcs-afterSales-usedPartDestory';
import {PAGE} from '../constants';
import {claimStatus, usedPartDestoryStatus, dealerType} from '../Enum';
const EMPTY_ARRAY = [];
export const PERMISSION = {
    update: 'update',
    add: 'add',
    export: 'export',
    confirmExport: 'confirmExport',
    submit: 'submit',
    abandon: 'abandon',
    approve: 'approve',
    confirm: 'confirm',
    print: 'print',
};
export const defaultStatus = [claimStatus.待审核, claimStatus.驳回, claimStatus.审核中, claimStatus.审核通过, claimStatus.拒赔];
export const DEFAULT_QUERY_OPTION = {
    brandId: '',
    code: '',
    dealerId: '',
    subDealerId: '',
    createTime: EMPTY_ARRAY,
    submitTime: EMPTY_ARRAY,
    approveTime: EMPTY_ARRAY,
    status: EMPTY_ARRAY,
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
};

export const DEFAULT_SUBMIT_DATA = {
    details: [],
    attachments: [],
};

export const dealerConditions = {
    type: dealerType.总代
};

export const subConditions = {
    type: dealerType.经销商
};
const FORM_ITEM_BIG_LAYOUT_OPTIONS = Object.freeze({
    labelCol: {
        xl: {span: 6},
        md: {span: 4}
    },
    wrapperCol: {
        xl: {span: 18},
        md: {span: 20}
    }
});
export const approveStatus = usedPartDestoryStatus.pick([
    usedPartDestoryStatus.审核通过,
    usedPartDestoryStatus.拒赔,
    usedPartDestoryStatus.驳回
]);

